<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
</head>

<body>
    <div>
        <h1>信息列表</h1>
        <table border="1">
            <thead>
                <tr>
                    <td>ID</td>
                    <td>姓名</td>
                    <td>年龄</td>
                    <td>操作</td>
                </tr>
            </thead>
            <tbody>
                {% for k, v in data_dict.items() %}
                <tr>
                    <td>{{k}}</td>
                    <td>{{v.name}}</td>
                    <td>{{v.age}}</td>
                    <td>
                        <a href="/edit?nid={{k}}">编辑</a>
                        <a href="/delete/{{k}}">删除</a>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
    <div>
        <a href="/login">点击登录</a>
    </div>
</body>

</html>